<template>
  <div class="w750 white-bg">
    <header>
      <div class="header-box">
        <div class="header-back">
          <span class="back-img"></span>
        </div>
        <div class="header-search">
          <p class="ser-txt">第三方授权中</p>
        </div>
        <div class="header-mes"><a href="#" class="mes-img"></a></div>
      </div>
    </header>
  </div>
</template>

<script>
  import { Swipe , SwipeItem  , NavBar } from "vant";
  import Noempty from 'components/Noempty/Noempty';
  import cash from 'utils/tool'
  import { successOrderDetail } from "api/order";
  export default {
    components: {
      NavBar,
      Noempty
    },
    data() {
      return {
        orderIfo: '',      //订单信息
      };
    },

    watch: {

    },
    mounted() {
      // this.$toast('授权中...')
      localStorage.setItem('openId',this.getQueryString("openId"))
      if(localStorage.getItem('openId')) {
        this.$router.replace(this.getQueryString("refrenceURL"))
      }
    },
    methods: {
      //获取url后面的地址
      getQueryString(name) {
        return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || nul
      }
    },
    computed: {

    }
  };
</script>


<style src="../../assets/css/submit-order.css" scoped></style>